<!DOCTYPE html>
<html lang="zh-CN" data-theme="light">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta name="generator" content="VuePress 2.0.0-beta.61" />
    <meta name="theme" content="VuePress Theme Hope" />
    <meta property="og:url" content="https://vampirewal.gitee.io/guide/Blog/"><meta property="og:site_name" content="Vampirewal的博客"><meta property="og:title" content="Blog"><meta property="og:type" content="website"><meta property="og:locale" content="zh-CN"><script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Blog"}</script><link rel="icon" href="/images/Vampirewal-Logo.png"><title>Blog | Vampirewal的博客</title><meta name="description" content="">
    <style>
      :root {
        --bg-color: #fff;
      }

      html[data-theme="dark"] {
        --bg-color: #1d1e1f;
      }

      html,
      body {
        background: var(--bg-color);
      }
    </style>
    <script>
      const userMode = localStorage.getItem("vuepress-theme-hope-scheme");
      const systemDarkMode =
        window.matchMedia &&
        window.matchMedia("(prefers-color-scheme: dark)").matches;

      if (userMode === "dark" || (userMode !== "light" && systemDarkMode)) {
        document.documentElement.setAttribute("data-theme", "dark");
      }
    </script>
    <link rel="preload" href="/assets/style-e39cfbf5.css" as="style"><link rel="stylesheet" href="/assets/style-e39cfbf5.css">
    <link rel="modulepreload" href="/assets/app-22721f16.js"><link rel="modulepreload" href="/assets/framework-b2028a60.js"><link rel="modulepreload" href="/assets/index.html-ecae203f.js"><link rel="modulepreload" href="/assets/index.html-630288e1.js"><link rel="prefetch" href="/assets/index.html-ccd194d0.js" as="script"><link rel="prefetch" href="/assets/demo.html-56e6340e.js" as="script"><link rel="prefetch" href="/assets/EventBus.html-dc7fd4e8.js" as="script"><link rel="prefetch" href="/assets/disable.html-7f48e029.js" as="script"><link rel="prefetch" href="/assets/encrypt.html-ba3cb006.js" as="script"><link rel="prefetch" href="/assets/markdown.html-1b5e4086.js" as="script"><link rel="prefetch" href="/assets/page.html-96ae5a87.js" as="script"><link rel="prefetch" href="/assets/index.html-7219c8aa.js" as="script"><link rel="prefetch" href="/assets/VampirewalAdmin.html-a62668af.js" as="script"><link rel="prefetch" href="/assets/QuickStart.html-7fe599ba.js" as="script"><link rel="prefetch" href="/assets/UpdateLog.html-a816c54c.js" as="script"><link rel="prefetch" href="/assets/Vampirewal_Core.html-23b9b624.js" as="script"><link rel="prefetch" href="/assets/VampirewalApplication.html-76ee9bed.js" as="script"><link rel="prefetch" href="/assets/VampirewalBootStartUp.html-1a019c7e.js" as="script"><link rel="prefetch" href="/assets/VampirewalCoreConfig.html-b167d52c.js" as="script"><link rel="prefetch" href="/assets/VampirewalMessenger.html-b26a2c62.js" as="script"><link rel="prefetch" href="/assets/VampirewalMiniApiBootStartup.html-2b533992.js" as="script"><link rel="prefetch" href="/assets/VampirewalWebApiBootStartup.html-08b63ed0.js" as="script"><link rel="prefetch" href="/assets/WindowsManager.html-0552ffbb.js" as="script"><link rel="prefetch" href="/assets/EnumHelper.html-005dd1f4.js" as="script"><link rel="prefetch" href="/assets/Step1.html-d3a904b7.js" as="script"><link rel="prefetch" href="/assets/Step2.html-854f4dba.js" as="script"><link rel="prefetch" href="/assets/Step3.html-e4f7979d.js" as="script"><link rel="prefetch" href="/assets/Step4.html-72a8b6cc.js" as="script"><link rel="prefetch" href="/assets/Step5.html-27b30032.js" as="script"><link rel="prefetch" href="/assets/VampirewalCoreActionService.html-6e5d4cfc.js" as="script"><link rel="prefetch" href="/assets/VampirewalCoreDataContext.html-9f4752bd.js" as="script"><link rel="prefetch" href="/assets/VampirewalCoreDialogService.html-77a368d6.js" as="script"><link rel="prefetch" href="/assets/VampirewalCoreLogService.html-61492e8f.js" as="script"><link rel="prefetch" href="/assets/VampirewalCoreValidationService.html-9f841b7a.js" as="script"><link rel="prefetch" href="/assets/DetailItemChangeBase.html-06e0719a.js" as="script"><link rel="prefetch" href="/assets/ModelBase.html-22a8edad.js" as="script"><link rel="prefetch" href="/assets/404.html-091e5331.js" as="script"><link rel="prefetch" href="/assets/index.html-d65fbea4.js" as="script"><link rel="prefetch" href="/assets/index.html-709e6dc5.js" as="script"><link rel="prefetch" href="/assets/index.html-ea47abc1.js" as="script"><link rel="prefetch" href="/assets/index.html-dd3b07c4.js" as="script"><link rel="prefetch" href="/assets/index.html-f6e8eef7.js" as="script"><link rel="prefetch" href="/assets/index.html-08de0f78.js" as="script"><link rel="prefetch" href="/assets/index.html-bf5796fb.js" as="script"><link rel="prefetch" href="/assets/index.html-ce899c67.js" as="script"><link rel="prefetch" href="/assets/index.html-1a448615.js" as="script"><link rel="prefetch" href="/assets/demo.html-ca220b3a.js" as="script"><link rel="prefetch" href="/assets/EventBus.html-0e1462be.js" as="script"><link rel="prefetch" href="/assets/disable.html-e6bb1935.js" as="script"><link rel="prefetch" href="/assets/encrypt.html-68213483.js" as="script"><link rel="prefetch" href="/assets/markdown.html-7fd0933c.js" as="script"><link rel="prefetch" href="/assets/page.html-fde308f9.js" as="script"><link rel="prefetch" href="/assets/index.html-5201d70f.js" as="script"><link rel="prefetch" href="/assets/VampirewalAdmin.html-6da3529f.js" as="script"><link rel="prefetch" href="/assets/QuickStart.html-40718670.js" as="script"><link rel="prefetch" href="/assets/UpdateLog.html-2950d36a.js" as="script"><link rel="prefetch" href="/assets/Vampirewal_Core.html-c360ae14.js" as="script"><link rel="prefetch" href="/assets/VampirewalApplication.html-8b48ed4c.js" as="script"><link rel="prefetch" href="/assets/VampirewalBootStartUp.html-5517c007.js" as="script"><link rel="prefetch" href="/assets/VampirewalCoreConfig.html-3a9a6c74.js" as="script"><link rel="prefetch" href="/assets/VampirewalMessenger.html-2a2b43a4.js" as="script"><link rel="prefetch" href="/assets/VampirewalMiniApiBootStartup.html-e9989404.js" as="script"><link rel="prefetch" href="/assets/VampirewalWebApiBootStartup.html-91711c8b.js" as="script"><link rel="prefetch" href="/assets/WindowsManager.html-f7db8f6c.js" as="script"><link rel="prefetch" href="/assets/EnumHelper.html-529a7cc6.js" as="script"><link rel="prefetch" href="/assets/Step1.html-f825304b.js" as="script"><link rel="prefetch" href="/assets/Step2.html-34131dda.js" as="script"><link rel="prefetch" href="/assets/Step3.html-0133dbe7.js" as="script"><link rel="prefetch" href="/assets/Step4.html-3a2d5db8.js" as="script"><link rel="prefetch" href="/assets/Step5.html-4dbbaee0.js" as="script"><link rel="prefetch" href="/assets/VampirewalCoreActionService.html-54dffc3b.js" as="script"><link rel="prefetch" href="/assets/VampirewalCoreDataContext.html-5736887a.js" as="script"><link rel="prefetch" href="/assets/VampirewalCoreDialogService.html-51cd637d.js" as="script"><link rel="prefetch" href="/assets/VampirewalCoreLogService.html-9f3ac6a5.js" as="script"><link rel="prefetch" href="/assets/VampirewalCoreValidationService.html-4ae941fe.js" as="script"><link rel="prefetch" href="/assets/DetailItemChangeBase.html-35351ecd.js" as="script"><link rel="prefetch" href="/assets/ModelBase.html-5bbce142.js" as="script"><link rel="prefetch" href="/assets/404.html-adc80472.js" as="script"><link rel="prefetch" href="/assets/index.html-922b9379.js" as="script"><link rel="prefetch" href="/assets/index.html-5cf8ef3c.js" as="script"><link rel="prefetch" href="/assets/index.html-b06c6c88.js" as="script"><link rel="prefetch" href="/assets/index.html-2bbf8599.js" as="script"><link rel="prefetch" href="/assets/index.html-2313fe0f.js" as="script"><link rel="prefetch" href="/assets/index.html-aec4c2b6.js" as="script"><link rel="prefetch" href="/assets/index.html-eeba1adf.js" as="script"><link rel="prefetch" href="/assets/index.html-4ea32e07.js" as="script"><link rel="prefetch" href="/assets/auto-ba5ecab5.js" as="script"><link rel="prefetch" href="/assets/index-8764208e.js" as="script"><link rel="prefetch" href="/assets/flowchart-35969cab.js" as="script"><link rel="prefetch" href="/assets/mermaid.core-8ee70914.js" as="script"><link rel="prefetch" href="/assets/VuePlayground-d724dd5f.js" as="script"><link rel="prefetch" href="/assets/photoswipe.esm-6e6cbe40.js" as="script">
  </head>
  <body>
    <div id="app"><!--[--><!--[--><!--[--><span tabindex="-1"></span><a href="#main-content" class="skip-link sr-only">跳至主要內容</a><!--]--><div class="theme-container has-toc"><!--[--><header class="navbar" id="navbar"><div class="navbar-start"><button class="toggle-sidebar-button" title="Toggle Sidebar"><span class="icon"></span></button><!--[--><!----><!--]--><a href="/" class="brand"><img class="logo" src="/images/Vampirewal-Logo.png" alt="Vampirewal的博客"><!----><span class="site-name hide-in-pad">Vampirewal的博客</span></a><!--[--><!----><!--]--></div><div class="navbar-center"><!--[--><!----><!--]--><nav class="nav-links"><div class="nav-item hide-in-mobile"><a href="/" class="nav-link" aria-label="首页"><span class="font-icon icon iconfont icon-discover" style=""></span>首页<!----></a></div><div class="nav-item hide-in-mobile"><div class="dropdown-wrapper"><button class="dropdown-title" type="button" aria-label="说明文档"><span class="title"><span class="font-icon icon iconfont icon-autumn" style=""></span>说明文档</span><span class="arrow"></span><ul class="nav-dropdown"><li class="dropdown-item"><a href="/guide/Vampirewal_Core/Vampirewal_Core.html" class="nav-link" aria-label="Vampirewal.Core文档"><!---->Vampirewal.Core文档<!----></a></li></ul></button></div></div><div class="nav-item hide-in-mobile"><div class="dropdown-wrapper"><button class="dropdown-title" type="button" aria-label="脚手架"><span class="title"><span class="font-icon icon iconfont icon-angular" style=""></span>脚手架</span><span class="arrow"></span><ul class="nav-dropdown"><li class="dropdown-item"><a href="/guide/VampirewalAdmin/VampirewalAdmin.html" class="nav-link" aria-label="Vampirewal.Admin"><!---->Vampirewal.Admin<!----></a></li></ul></button></div></div><div class="nav-item hide-in-mobile"><div class="dropdown-wrapper"><button class="dropdown-title" type="button" aria-label="博客"><span class="title"><span class="font-icon icon iconfont icon-note" style=""></span>博客</span><span class="arrow"></span><ul class="nav-dropdown"><li class="dropdown-item"><a href="/guide/Blog/EventBus.html" class="nav-link" aria-label="博客"><!---->博客<!----></a></li></ul></button></div></div><div class="nav-item hide-in-mobile"><div class="dropdown-wrapper"><button class="dropdown-title" type="button" aria-label="源码Gitee"><span class="title"><span class="font-icon icon iconfont icon-creative" style=""></span>源码Gitee</span><span class="arrow"></span><ul class="nav-dropdown"><li class="dropdown-item"><a href="https://gitee.com/vampirewal/Vampirewal.Core" rel="noopener noreferrer" target="_blank" aria-label="Vampirewal.Core" class="nav-link"><!---->Vampirewal.Core<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!----></a></li><li class="dropdown-item"><a href="https://gitee.com/vampirewal/Vampirewal.Admin" rel="noopener noreferrer" target="_blank" aria-label="Vampirewal.Admin" class="nav-link"><!---->Vampirewal.Admin<span><svg class="external-link-icon" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path><polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg><span class="external-link-icon-sr-only">open in new window</span></span><!----></a></li></ul></button></div></div></nav><!--[--><!----><!--]--></div><div class="navbar-end"><!--[--><!----><!--]--><!----><!----><div class="nav-item hide-in-mobile"><button id="appearance-switch"><svg xmlns="http://www.w3.org/2000/svg" class="icon auto-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="auto icon" style="display:block;"><path d="M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm0-840c-198.78 0-360 161.22-360 360 0 198.84 161.22 360 360 360s360-161.16 360-360c0-198.78-161.22-360-360-360zm0 660V212c165.72 0 300 134.34 300 300 0 165.72-134.28 300-300 300z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" class="icon dark-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="dark icon" style="display:none;"><path d="M524.8 938.667h-4.267a439.893 439.893 0 0 1-313.173-134.4 446.293 446.293 0 0 1-11.093-597.334A432.213 432.213 0 0 1 366.933 90.027a42.667 42.667 0 0 1 45.227 9.386 42.667 42.667 0 0 1 10.24 42.667 358.4 358.4 0 0 0 82.773 375.893 361.387 361.387 0 0 0 376.747 82.774 42.667 42.667 0 0 1 54.187 55.04 433.493 433.493 0 0 1-99.84 154.88 438.613 438.613 0 0 1-311.467 128z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" class="icon light-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="light icon" style="display:none;"><path d="M952 552h-80a40 40 0 0 1 0-80h80a40 40 0 0 1 0 80zM801.88 280.08a41 41 0 0 1-57.96-57.96l57.96-58a41.04 41.04 0 0 1 58 58l-58 57.96zM512 752a240 240 0 1 1 0-480 240 240 0 0 1 0 480zm0-560a40 40 0 0 1-40-40V72a40 40 0 0 1 80 0v80a40 40 0 0 1-40 40zm-289.88 88.08-58-57.96a41.04 41.04 0 0 1 58-58l57.96 58a41 41 0 0 1-57.96 57.96zM192 512a40 40 0 0 1-40 40H72a40 40 0 0 1 0-80h80a40 40 0 0 1 40 40zm30.12 231.92a41 41 0 0 1 57.96 57.96l-57.96 58a41.04 41.04 0 0 1-58-58l58-57.96zM512 832a40 40 0 0 1 40 40v80a40 40 0 0 1-80 0v-80a40 40 0 0 1 40-40zm289.88-88.08 58 57.96a41.04 41.04 0 0 1-58 58l-57.96-58a41 41 0 0 1 57.96-57.96z"></path></svg></button></div><!----><!--[--><!----><!--]--><button class="toggle-navbar-button" aria-label="Toggle Navbar" aria-expanded="false" aria-controls="nav-screen"><span class="button-container"><span class="button-top"></span><span class="button-middle"></span><span class="button-bottom"></span></span></button></div></header><!----><!--]--><!----><div class="toggle-sidebar-wrapper"><span class="arrow start"></span></div><aside class="sidebar" id="sidebar"><!--[--><!----><!--]--><ul class="sidebar-links"><li><section class="sidebar-group"><p class="sidebar-heading"><!----><span class="title">博客</span><!----></p><ul class="sidebar-links"><li><!--[--><a href="/guide/Blog/EventBus.html" class="nav-link sidebar-link sidebar-page" aria-label="关于事件总线EventBus"><span class="font-icon icon iconfont icon-edit" style=""></span>关于事件总线EventBus<!----></a><ul class="sidebar-sub-headers"></ul><!--]--></li></ul></section></li></ul><!--[--><!----><!--]--></aside><!--[--><main class="page" id="main-content"><!--[--><!----><nav class="breadcrumb disable"></nav><div class="page-title"><h1><!---->Blog</h1><div class="page-info"><span class="page-author-info" aria-label="作者🖊" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon author-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="author icon"><path d="M649.6 633.6c86.4-48 147.2-144 147.2-249.6 0-160-128-288-288-288s-288 128-288 288c0 108.8 57.6 201.6 147.2 249.6-121.6 48-214.4 153.6-240 288-3.2 9.6 0 19.2 6.4 25.6 3.2 9.6 12.8 12.8 22.4 12.8h704c9.6 0 19.2-3.2 25.6-12.8 6.4-6.4 9.6-16 6.4-25.6-25.6-134.4-121.6-240-243.2-288z"></path></svg><span><span class="page-author-item">vampirewal</span></span><span property="author" content="vampirewal"></span></span><!----><!----><!----><span class="page-reading-time-info" aria-label="阅读时间⌛" data-balloon-pos="down"><svg xmlns="http://www.w3.org/2000/svg" class="icon timer-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="timer icon"><path d="M799.387 122.15c4.402-2.978 7.38-7.897 7.38-13.463v-1.165c0-8.933-7.38-16.312-16.312-16.312H256.33c-8.933 0-16.311 7.38-16.311 16.312v1.165c0 5.825 2.977 10.874 7.637 13.592 4.143 194.44 97.22 354.963 220.201 392.763-122.204 37.542-214.893 196.511-220.2 389.397-4.661 5.049-7.638 11.651-7.638 19.03v5.825h566.49v-5.825c0-7.379-2.849-13.981-7.509-18.9-5.049-193.016-97.867-351.985-220.2-389.527 123.24-37.67 216.446-198.453 220.588-392.892zM531.16 450.445v352.632c117.674 1.553 211.787 40.778 211.787 88.676H304.097c0-48.286 95.149-87.382 213.728-88.676V450.445c-93.077-3.107-167.901-81.297-167.901-177.093 0-8.803 6.99-15.793 15.793-15.793 8.803 0 15.794 6.99 15.794 15.793 0 80.261 63.69 145.635 142.01 145.635s142.011-65.374 142.011-145.635c0-8.803 6.99-15.793 15.794-15.793s15.793 6.99 15.793 15.793c0 95.019-73.789 172.82-165.96 177.093z"></path></svg><span>小于 1 分钟</span><meta property="timeRequired" content="PT1M"></span><!----><!----></div><hr></div><!----><!----><div class="theme-hope-content"><div class="auto-catalog-wrapper"><h2 class="main-title">目录</h2><!--[--><h3 id="关于事件总线EventBus" class="child-title"><a href="#关于事件总线EventBus" class="header-anchor">#</a><a href="/guide/Blog/EventBus.html" class="catalog-title"><!----><!--[--><span class="font-icon icon iconfont icon-edit" style=""></span><!--]-->关于事件总线EventBus</a></h3><!----><!--]--></div></div><!----><footer class="page-meta"><!----><div class="meta-item git-info"><!----><!----></div></footer><!----><!----><!----><!--]--></main><!--]--><footer class="footer-wrapper"><!----><div class="copyright">Copyright © 2024 vampirewal</div></footer></div><!--]--><!----><!--]--></div>
    <script type="module" src="/assets/app-22721f16.js" defer></script>
  </body>
</html>
